var status = -1;
var selectionLog = [];

function start() {
    action(1, 0, 0)
}

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.playerMessage(-1, "必须消灭区域内的所有怪物，才能移动到下一区域。");
            if (cm.getMapId() == 304030100) {
                cm.fieldEffect_ScreenMsg("aswan/stageEff/stage");
                cm.fieldEffect_ScreenMsg("aswan/stageEff/number/1")
            } else {
                if (cm.getMapId() == 304030200) {
                    cm.fieldEffect_ScreenMsg("aswan/stageEff/stage");
                    cm.fieldEffect_ScreenMsg("aswan/stageEff/number/2")
                } else {
                    if (cm.getMapId() == 304030300) {
                        cm.fieldEffect_ScreenMsg("aswan/stageEff/final")
                    }
                }
            }
            cm.dispose()
        }
    }
};